

  import publicForm from "@/components/public/Close-form.vue"; //弹框form
  import formJs from "./regexDetail.js"; //新增弹框配置项

  import {


    getWorkProcessPatrol2ByFid, //详情
  } from "@/api/request.js";
  export default {
    name: "patrolInformationDetail",
    components: {
      publicForm, //弹框表格
    },
  
    data() {
      return {
        name: "patrolInformationDetail",
        timeYMD: null, //当前日期
        dialogTitle: "",
        loadingEditDialog: false, //弹框loading
        dialogEditVisible: false, //新增弹框是否显示
        formObjShow: formJs.formObjLook, //质量巡查信息
        examineShow: formJs.examineLook, //巡查信息签收
        rectificationShow: formJs.rectificationLook, //整改信息回复
  
        formData: formJs.formData,
        fHandlefileList: [], //上传文件
        fCompletionfilelist: [], //回复文件
      
        
      
        companyNum: "", //显示隐藏
      };
    },
    created() {},
    mounted() {
        console.log(565656);
        console.log(window.location.href,55,window.location.href.split("=")[1].split("&")[0]);
    //   this.getData = {
    //     fId: window.location.href.split("=")[1].split("&")[0], // 超标记录fid
    //     fCompanyid: window.location.href.split("=")[2], // 选中的施工标段id
    //     //   fCompanyid: "a4b6f9f2-ad46-494f-a43c-a1cb2f8e6813",
    //     //   fId: "38442da6-ba0a-49b1-8227-bb3d63c6d309",
    //   };
      this.getDetailData(window.location.href.split("=")[1].split("&")[0]);
    },
    methods: {
      // 折叠面板
      changeCollapse(e) {
        //   console.log(this.activeNames, e);
        return e;
      },
      getDetailData(id) {
        //没加转圈
        // var that = this;
        getWorkProcessPatrol2ByFid({ fId: id })
        .then((res) => {
          if (res.errcode == 0) {
            this.loadingEditDialog = false; //弹框loading
            this.formData = res.data.yjQmpMsWorkprocessPatrol;
            this.fHandlefileList = res.data.fPatrolfileurllist;
            this.fCompletionfilelist = res.data.fCompletionfilelist;
          } else {
            this.$message.error("查看", res.msg);
            this.loadingEditDialog = false;
          }
        })
        .catch(() => {
          console.log("查看---详情接口报错");
          this.loadingEditDialog = false;
        });
      },
   
    },
  };